<%-- 
    Document   : comprar
    Created on : 31-dic-2012, 13:49:49
    Author     : Cannibal-Slayer
--%>

<%@page import="com.sun.xml.internal.messaging.saaj.util.TeeInputStream"%>
<%@page contentType="text/html" pageEncoding="UTF-8" session="true" import="java.util.*" import="CapaSeguridad.*"%>

<!DOCTYPE html>
<html lang="en">
    <head>
        <title>guatebay</title>
        <meta charset="utf-8">

        
        <script type="text/javascript" src="js/ajax-dynamic-content.js"></script>
        <script type="text/javascript" src="js/ajax.js"></script>
        <script type="text/javascript" src="js/ajax-tooltip.js">
        </script>	
        <link rel="stylesheet" href="css/ajax-tooltip.css" media="screen" type="text/css">
        <link rel="stylesheet" href="css/ajax-tooltip-demo.css" media="screen" type="text/css">
        <link rel="stylesheet" href="css/reset.css" type="text/css" media="all">
        <link rel="stylesheet" href="css/layout.css" type="text/css" media="all">
        <link rel="stylesheet" href="css/style.css" type="text/css" media="all">
        <script type="text/javascript" src="js/jquery-1.5.2.js" ></script>
        <script type="text/javascript" src="js/cufon-yui.js"></script>
        <script type="text/javascript" src="js/cufon-replace.js"></script>
        <script type="text/javascript" src="js/Amaranth_400.font.js"></script>
        <script type="text/javascript" src="js/script.js"></script>
        <script type="text/javascript" src="js/scroll.js"></script>
        <script type="text/javascript" src="js/atooltip.jquery.js"></script>

    </head>
    <body>  
        <%
        
        LinkedList<CapaSeguridad.Error>  errores = CapaSeguridad.Error.obtenerTodosLosErrores();
        
        %>
        <div class="extra">
            <div id="page_3">
                <div class="main">
                    <!--header -->

                    <table width="800" border="1" id="encabezado" > 
                        <tr> 
                            <td width="600" align="center"><p align="left"> <a target="frame"><img src="images/guatebay_logo.jpg" alt="">      </a>  </p> </td> 
                            <td width="800" align="center">
                                <br>    
                                <p align="right"> 
                                    <%
                                        String usuario = (String) session.getAttribute("usuario");
                                        out.print("Bienvenido: " + usuario);
                                    %>
                                </p>
                                
                                <p align="right"> <a href="">Cerrar Sesion</a></p>   
                            </td> 
                        </tr>
                    </table>

                    <header>  
                        <br>  
                        <nav>
                            <ul class="menu">
                                <li><a href="catalogo.jsp">Catálogo</a></li>
                                <li><a href="vender.jsp">Vender</a></li>
                                <li><a href="comprar.jsp">Comprar</a></li>
                                <li><a href="#page_2">Perfil</a></li>
                            </ul>
                        </nav>
                    </header>
                    <!--header end-->
                    <!--content -->                    
                    <section class="content">
                        
                        <%
                        
                        out.print("<TABLE BORDER=\"1\">");
                        out.print("<TR>");
                        out.print(" <TH>Descripcion</TH> <TH>Fecha</TH>");
                        out.print("</TR>");
                        
                        for(CapaSeguridad.Error error : errores){
                            out.print("<TR>");
                            out.print("<TH>" + error.getStrDescripcion() + "</TH>");
                            out.print("<TH>" + error.getHora() + "</TH>");
                            out.print("</TR>");
                        }
                        
                        out.print("</TABLE>");
                                               
                        %>
                        
                    </section>
                    <!--content end-->
                 </div>

                <div class="block">           
                </div>

                <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
            </div>
        </div>
        <div class="main">  
            <!--footer -->
            <footer>
                <ul class="icons">
                    <li>Análisis y Diseño de Sistemas 2 (Proyecto de Clase)</li>
                    <li><a href="#" class="normaltip"><img src="images/icon1.jpg" alt=""></a></li>
                    <li><a href="#" class="normaltip"><img src="images/icon2.jpg" alt=""></a></li>
                    <li><a href="#" class="normaltip"><img src="images/icon3.jpg" alt=""></a></li>
                    <li><a href="#" class="normaltip"><img src="images/icon4.jpg" alt=""></a></li>
                    <li><a href="#" class="normaltip"><img src="images/icon5.jpg" alt=""></a></li>
                    <li><a href="#" class="normaltip"><img src="images/icon6.jpg" alt=""></a></li>
                </ul>
            </footer>
            <!--footer end-->
        </div>    
    </body>
</html>